//
//  BHMeGroupItemModel.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/6/11.
//

import UIKit

class BHMeGroupItemModel: NSObject {
    var iconName: String = ""
    var itemName: String = ""
    var itemId: Int = 0
    
    
    
    static func groupToolsArray() -> [BHMeGroupItemModel] {
        
        var toolsArray: [BHMeGroupItemModel] = []
        let nameArray: [String] = ["钱包",
                                   "订单",
                                   "收藏",
                                   "赛事",
                                   "约玩"]
        let iconArray: [String] = ["bh_me_group_wallet_sign",
                                   "bh_me_group_order_sign",
                                   "bh_me_group_collect_sign",
                                   "bh_me_group_competition_sign",
                                   "bh_me_group_fun_sign"]
        
        for i in 0..<nameArray.count {
            let model = BHMeGroupItemModel.init()
            model.iconName = iconArray[i]
            model.itemName = nameArray[i]
            toolsArray.append(model)
        }
        return toolsArray
    }
    
    static var meRowsArray: [BHMeGroupItemModel] {
        get {
            let nameArray: [String] = ["联系我们",
                                       "投诉建议",
                                       "设置中心"]
            let iconArray: [String] = ["bh_me_row_connectUs_sign",
                                       "bh_me_row_complaint_sign",
                                       "bh_me_row_setting_sign"]
            var toolsArray: [BHMeGroupItemModel] = []

            for i in 0...2 {
                let model = BHMeGroupItemModel.init()
                model.iconName = iconArray[i]
                model.itemName = nameArray[i]
                toolsArray.append(model)
            }
            return toolsArray
        }
    }
}
